package com.ohimy.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 用户详细信息封装类
 * 
 * @author Tony Tang
 * @version 1.0
 */
@Entity
@MappedSuperclass
@Table(name = "ohimy_user_detail")
public class UserDetail implements Serializable {

	private static final long serialVersionUID = -1983881057708786520L;

	private long id;

	private String realname; // 真实姓名

	private String sex; // 性别

	private String lovestatus;// 恋爱状态

	private Date birthday; // 生日

	private String mobile; // 手机

	private String tel; // 寝室电话

	private String hometown; // 家乡

	private String fullAddress; // 详细地址

	private String school; // 学校名称

	private String college; // 学院名称

	private String department; // 系别名称

	private String major; // 专业名称

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	@Column(name = "_real_name", length = 16)
	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	@Column(name = "_sex", length = 16)
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "_birthday")
	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	@Column(name = "_lovestatus", length = 2)
	public String getLovestatus() {
		return lovestatus;
	}

	public void setLovestatus(String lovestatus) {
		this.lovestatus = lovestatus;
	}

	@Column(name = "_mobile", length = 16)
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	@Column(name = "_tel", length = 16)
	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	@Column(name = "_hometown", length = 32)
	public String getHometown() {
		return hometown;
	}

	public void setHometown(String hometown) {
		this.hometown = hometown;
	}

	@Column(name = "_full_address", length = 64)
	public String getFullAddress() {
		return fullAddress;
	}

	public void setFullAddress(String fullAddress) {
		this.fullAddress = fullAddress;
	}

	@Column(name = "_school", length = 64)
	public String getSchool() {
		return school;
	}

	public void setSchool(String school) {
		this.school = school;
	}

	@Column(name = "_college", length = 32)
	public String getCollege() {
		return college;
	}

	public void setCollege(String college) {
		this.college = college;
	}

	@Column(name = "_department", length = 32)
	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	@Column(name = "_major", length = 32)
	public String getMajor() {
		return major;
	}

	public void setMajor(String major) {
		this.major = major;
	}

}
